package basicio;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;

public class FileIO {
	public static void main(String[] a){
		FileInputStream fin = null;
		
		try {
			fin = new FileInputStream( "src/lect/Data.txt" );
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		
			Scanner scanin = new Scanner( fin );
			int x = scanin.nextInt();
			System.out.println(" x is " + x );
			x = scanin.nextInt();
			System.out.println(" x is " + x );
			x = scanin.nextInt();
			System.out.println(" x is " + x );
			x = scanin.nextInt();
			System.out.println(" x is " + x );
	}
}
